package cn.pconline.officialclub.entity;

import java.util.Date;
import org.gelivable.dao.Column;
import org.gelivable.dao.Entity;
import org.gelivable.dao.Id;

/**
 * 官方车友会公告
 *
 * @author <a href="mailto:chensy0203@163.com">chensy</a>
 */
@Entity(tableName = "oac_club_notice", logChange = true)
public class OClubNotice extends EntityKit {

    /**
     * 车友会Id（一个车友会有且只有一条记录）
     */
    @Id
    @Column(name = "o_club_id")
    private long oClubId;
    /**
     * 公告内容
     */
    @Column(name = "content")
    private String content;
    /**
     * 更新者ID
     */
    @Column(name = "update_by")
    private long updateBy;
    /**
     * 更新时间
     */
    @Column(name = "update_at")
    private Date updateAt;
    /**
     * 公告内容未审
     */
    public final static int STATUS_NOT_AUDITED = 0;
    /**
     * 公告内容已审
     */
    public final static int STATUS_AUDITED = 1;
    /**
     * 状态：0未审1已审
     */
    @Column(name = "status")
    private int status;

    /**
     * 兼容geli
     *
     * @return
     */
    public long getOClubId() {
        return oClubId;
    }

    /**
     * 兼容geli
     *
     * @return
     */
    public void setOClubId(long oClubId) {
        this.oClubId = oClubId;
    }

    public long getoClubId() {
        return oClubId;
    }

    public void setoClubId(long oClubId) {
        this.oClubId = oClubId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(long updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(Date updateAt) {
        this.updateAt = updateAt;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
